<!-- 订阅 -->
<template>
  <!-- <sub-wrapper @close="onClose">
    <template #content>
      <sub-content :data="data" />
    </template>
    <template #logo>
      <img
        :src="config.subscription.logo"
        class="h-full w-full"
      />
    </template>
  </sub-wrapper> -->
  <poster-view />
</template>

<script
  lang="ts"
  setup
  name="WebSub"
>
import { useConfigStore } from '@/store/config'

const config: any = useConfigStore()

const emit = defineEmits(['unmount'])

const onClose = () => emit('unmount')

const data = computed(() => ({
  name: config.share_info?.title,
  description: config.share_info?.description,
  qrcode: config.share_info?.thumb_image,
  type: 'share'
}))
</script>

<style lang="scss"></style>
